package araujoCoronelVillamayor.plantasVsZombies.domain;

import araujoCoronelVillamayor.plantasVsZombies.domain.Fila;
import araujoCoronelVillamayor.plantasVsZombies.domain.Planta;
import java.io.Serializable;
import java.util.ArrayList;
import org.uqbar.commons.utils.Observable;

@Observable
@SuppressWarnings("all")
public class Jardin implements Serializable {
  private ArrayList<Fila> filas;
  
  public Jardin() {
    ArrayList<Fila> _arrayList = new ArrayList<Fila>();
    this.filas = _arrayList;
  }
  
  public int cantidadFilas() {
    int _size = this.filas.size();
    return _size;
  }
  
  public boolean agregarFila(final Fila fila) {
    boolean _add = this.filas.add(fila);
    return _add;
  }
  
  public ArrayList<Fila> getFilas() {
    return this.filas;
  }
  
  public boolean agregarPlanta(final Planta planta, final Fila fila) {
    boolean _plantar = fila.plantar(planta);
    return _plantar;
  }
}
